<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	class MemberData 안에 있는 getList라는 메서드를 실행해서
	모든 데이터가 다 들어있는 list 를 받아야됩니다
	받았으면 그 안에 있는 Member 들을 화면에 출력합니다
<%@ page import="data.MemberData" 
	import="java.util.*" import="model.Member" %>
<table border="1">  
	<tr>
		<td> 이름 </td> <td> 나이 </td>
	</tr>
<%  
	MemberData data=new MemberData();
	ArrayList<Member> list =data.getList();
	for(int i=0; i< list.size() ; i++){ 
		Member member=list.get(i);
		String name=member.getName();
		int age =member.getAge();
		%> 
		<tr> 
			<td><%=name%> </td>
			<td><%=age %> </td> 
		</tr>
		<%
	}   
%>
</table>
	list : <%=list %>   
	
	
</body>
</html>